{layout name="/base"}
  <div id="page-wrapper">
    <div class="row">
      <div class="col-lg-12">
        <h1>房车管理 <small>房车信息</small></h1>
        <ol class="breadcrumb">
          <li><a href="index.php"><i class="fa fa-dashboard"></i> 管理首页</a></li>
          <li class="active"><i class="fa fa-table"></i> 房车信息列表</li>
        </ol>
        <div class="alert alert-success alert-dismissable">
          <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
          这里可以添加、修改、删除房车信息 
        </div>
      </div>
    </div>
    <!-- /.row -->
    <div class="row">
      <div class="col-lg-12">
        <form class="form-horizontal" role="form" action="/ordercaravan/index1" method="get">
          <div class="form-group col-sm-2" style="margin-right:10px;">
            <label for="">选择营地</label>
            <select class="form-control" name="searchfield">
            <option value="number">全部</option>
              <option value="number">北京八达岭房车露营地</option>
              <option value="name">北京迪斯尼房车露营地</option>
            </select>
          </div>
          <div class="form-group col-sm-2" style="margin-right:10px;">
            <label for="">审核状态</label>
            <select class="form-control" name="searchfield">
            <option value="number">全部</option>
              <option value="number">待审核</option>
              <option value="name">审核中</option>
              <option value="name">审核通过</option>
              <option value="name">未通过审核</option>
            </select>
          </div>
          <div class="form-group col-sm-4 input-group">
            <label for="">请输入搜索条件</label>
            <input class="form-control" type="text" placeholder="请输入房车信息搜索" name="keyword">
            <label for="">&nbsp;</label>
            <span class="input-group-btn">
              <button class="btn btn-default" type="submit">搜索</button>
            </span>
          </div>
          <div class="clearfix"></div>
        </form>
        <div class="table-responsive">
          <table class="table table-bordered table-hover table-striped tablesorter">
            <thead>
              <tr>
                <th>房车编号</th>
                <th>房车名称</th>
                <th>营地名称</th>
                <th>泊位编号</th>
                <th>生产厂家</th>
                <th>房车品牌</th>
                <th>房车等级</th>
                <th>参考价格</th>
                <th>旅行币基数</th>
                <th>分享状态</th>
                <th>审核状态</th>
                <th>操作</th>
              </tr>
            </thead>
            <tbody>
            {volist name='list' id='vo'}
              <tr>
                <td>{$vo.number}</td>
                <td>{$vo.name}</td>
                <td>{$vo.services}</td>
                <td>{$vo.park_num}</td>
                <td>生产厂家</td>
                <td>{$vo.car_brands_id}</td>
                <td>房车等级</td>
                <td>{$vo.integral}</td>
                <td>旅行币基数</td>
                <td>已分享</td>
                <td>审核状态</td>
                <td><a href="/caravans/{$vo.id}" data-toggle="modal">查看详情</a> </td>
              </tr>
            {/volist}  
            </tbody>
          </table>
        </div>
        
      </div>
      <div class="col-sm-12">
      </div>
    </div>
    <!-- /.row -->
    <div class="row">
      
    </div>
  </div><!-- /#page-wrapper -->

<script type="text/javascript" src="/jquery.js"></script>
<script type="text/javascript">
  $(document).ready(function(){
    $("#del").click(function(){
      $("#delete").submit();
      });
    $("#todraft").click(function(){
      $("#delete").attr('action','/caravan/setStauts');
      $("#delete").submit();
      });
    });
</script>
